package Outclass.Animal;

public class Bear extends Animal implements IAnimal{
    String dongMian;

    public Bear(){

    }
    Bear(String n, String f, String a, String dm) {
        super(n, f, a);
        this.dongMian=dm;
    }

    @Override
    String findFood() {
        return super.name+"寻找"+super.food;
    }

    @Override
    String wholeLife() {
        //定义
        String b;
        b=born();
        //定义时初始化
        String  f=findFood();
        String  e=eat();
        String  s=sick();
        String  o=old();
        return b+"\n"+f+"\n"+e+"\n"+s+"\n"+o+"\n";
    }

    @Override
    public String born() {
        return "北极熊出生";
    }

    @Override
    public String old() {
        return "年龄会变大";
    }

    @Override
    public String sick() {
        return "会生病了";
    }

    @Override
    public String die() {
        return "会死";
    }
}
